<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<!--<!DOCTYPE html>-->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试Thymeleaf</title>
</head>
<body>

<div th:include="head.html"></div>

<div th:text="${hello}">大腕好</div></br>
<input th:type="text" th:value="${hehe}"/></br>

<table border="1">
    <tr th:each="map:${listMap}">
        <td th:text="${map.id}"></td>
        <td th:text="${map.name}"></td>
    </tr>
</table></br>
三元运算：
<td th:text="(${map.id}=='10')?'是10':'不是10'"></td></br>
If 判断
<td th:if="${map.id}=='10'" >123456</td>
<td th:if="${map.id}!='10'" >78910J</td>
</br>
<div th:text="${session.userName}"> </div></br>

<div th:text="${gname}"></div>
<div th:utext="${gname}"></div>

</body>
</html>